const express = require('express');
const router = express.Router();

const { signup, signin, userChange } = require('../controllers/users');
const {auth} = require("../middleware/auth");

/* GET users listing. */
router.post('/signup', signup);

router.post('/signin', signin);

router.patch('/:username', auth, userChange)

module.exports = router;